﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;

namespace DataAccess
{
    public class CategoryData
    {
        public IEnumerable<Category> AllCategory()
        {
            ShoppingCardDataContext ctx = new ShoppingCardDataContext();
            IEnumerable<Category> list = from c in ctx.Categories
                                         select c;
            return list;
        }
    }
}
